home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / live-config.postrm < prev    next >
Encoding:
Text File  |  2012-09-30  |  610 b   |  32 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "${1}" in
  6.     purge)
  7.         rm -f /etc/sudoers.d/live
  8.         rm -f /etc/profile.d/locales-all.sh
  9.         rm -f /etc/profile.d/zz-live.sh
  10.         rm -f /etc/X11/xorg.conf.d/99-live.conf
  11.  
  12.         rmdir --ignore-fail-on-non-empty /etc/live/config > /dev/null 2>&1 || true
  13.         rmdir --ignore-fail-on-non-empty /etc/live > /dev/null 2>&1 || true
  14.  
  15.         rm -rf /var/lib/live/config
  16.         rmdir --ignore-fail-on-non-empty /var/lib/live > /dev/null 2>&1 || true
  17.         ;;
  18.  
  19.     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  20.  
  21.         ;;
  22.  
  23.     *)
  24.         echo "postrm called with unknown argument \`${1}'" >&2
  25.         exit 1
  26.         ;;
  27. esac
  28.  
  29.  
  30.  
  31. exit 0
  32.